package com.wuyoucar.mapper;

import com.wuyoucar.entity.TCarinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface TCarinfoMapper {
    //根据车架号查询车辆的信息
    TCarinfo selectCarinfoByVin(Map<String, String> map);
   //插入车辆的详细信息 == 绑定车辆
    int insertCarinfo(TCarinfo tCarinfo);
   // 查询用户绑定的车辆信息
   List<TCarinfo> selectAllCarById(@Param("userid") Integer userid);
    //解绑车辆
    int unbunding(@Param("vin") String vin);
}
